home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / U-Z / YACC / MacYacc APPL⁄Yac.docs < prev    next >
Encoding:
Text File  |  1990-11-05  |  2.4 KB  |  59 lines  |  [TEXT/KAHL]

  1. MacYacc & YACC for use with THINK C
  2. © 1990 Maarten Meijer, Amsterdam
  3. These files can be distributed as a whole including this copyright notice.
  4. No responsibility is taken for the results. If you find this program usefull
  5. drop me a note.
  6.  
  7. Introduction:
  8. =============
  9.  
  10. An implementation of YACC for the Macintosh allowing the creation of left
  11. right lookahead parsers.
  12. One should have access to UNIX manuals to understand this program, but an 
  13. example for a calculator is included. There is also an example showing
  14. the use of uninons. Parsers are usefull for making compilers,
  15. but also for handling the formula parts in a spreadsheet cell or special
  16. scripting languages for comms packages.
  17.  
  18. Installation:
  19. =============
  20. YACC, MacYacc APPL and the file yypars.c should be placed in the same
  21. directory. YACC and yypars.c should not be renamed.
  22.  
  23. Instructions for use:
  24. =====================
  25. Start up MacYacc APPL, click on the file icons to put together the
  26. instructions to YACC.
  27. MacYacc is used to create a TEXT file Yacc_Args in the directory
  28. containing YACC, that contains the following lines:
  29.  
  30. 1:    Full pathname to input file
  31. 2:    Full pathname to output file
  32. 3:    Full pathname to header file to use with LEX
  33. 4:    Full pathname to info file with debugging info
  34. 5:    The name of the parser driver (default yypars.c)
  35.  
  36. This file is automaticaly opened when YACC starts, allowing use with
  37. for example MPW. You have to provide your own commando interface though.
  38. This also allows restarting YACC with the same setups.
  39. For the moment the output files have creator KAHL for THINK C
  40. Yacc files should have extension '.y'. Output defaults to extension
  41. '.yacc.c'    for 2, '.yacc.h' for 3, and '.yacc.output' for 3.
  42.  A file containing resources for the parser tables is also created with the
  43. extension '.yacc.rsrc'. This file is opened by the setup routine in yypars.c
  44. See code for details on how to skip this.
  45. The resulting code uses the resources when YACC_RESOURCES is defined.
  46. If YACC_ALONE is defined, it will not look in a separate resource file.
  47.  
  48. Origins:
  49. ========
  50. Original code by Bruce Denny in 1980.
  51. This program is a port from a port to the IBM PC, by Scott Guthery in 1985.
  52. Adaptions to Macintosh (including resource use) by M.J.Meijer
  53. using THINK C 4.0 in 1990, interface for MacYacc APPL designed & built
  54. using Prototyper 2.1.
  55.  
  56. Comments would be appreciated on FidoNet 2:512/114
  57.  
  58. A version of LEX is in the works, to be named MacLex && LEX.
  59.